home *** CD-ROM | disk | FTP | other *** search
- property usecursor
- global timebuffer2, kolor_activecolor, gv_kolorowanka_undo, gv_colortable
-
- on mouseDown me
- timebuffer2 = the timer
- p = the clickLoc
- x = getAt(p, 1) - sprite(me.spriteNum).locH
- y = getAt(p, 2) - sprite(me.spriteNum).locV
- FX("5_1501P.WAV")
- put x, y
- a = getpoint(sprite(me.spriteNum), x, y, 0)
- if getAt(gv_colortable, kolor_activecolor) <> a then
- add(gv_kolorowanka_undo, [x, y, a])
- if count(gv_kolorowanka_undo) > 20 then
- deleteAt(gv_kolorowanka_undo, 1)
- end if
- paint(sprite(me.spriteNum), x, y, 0)
- forceredraw(sprite(me.spriteNum))
- updateStage()
- end if
- end
-
- on mouseEnter
- timebuffer2 = the timer
- cursor(usecursor)
- end
-
- on mouseLeave
- timebuffer2 = the timer
- setcursor(#CursorNormal)
- end
-